package com.demo.burt.dataobject;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 订单
 * </p>
 *
 * @author luowei1
 * @since 2018-12-12
 */
@Setter
@Getter
@ToString
@TableName("test_order")
public class TestOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @TableId(value = "order_id", type = IdType.ID_WORKER)
    private Long              orderId;
    /**
     * 用户id
     */
    @TableField("user_id")
    private Long              userId;
    /**
     * 订单金额(单位:分)
     */
    private Integer           amount;
    /**
     * 订单状态(0:未支付,1:已支付,2:已发货,3:已确认收货,4:已完成,5:已取消)
     */
    @TableField("order_status")
    private Integer           orderStatus;
    /**
     * 创建人
     */
    @TableField("create_by")
    private String            createBy;
    /**
     * 创建时间
     */
    @TableField("created_time")
    private Date              createdTime;
    /**
     * 修改人
     */
    @TableField("updated_by")
    private String            updatedBy;
    /**
     * 更新时间
     */
    @TableField("updated_time")
    private Date              updatedTime;
    /**
     * IsDeleted
     */
    @TableField("is_deleted")
    private Boolean           isDeleted;

}
